﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace YHWE.Web.Areas.manage.Models
{
    public class xhEditorJson
    {

        /// <summary>
        /// 上传成功
        /// </summary>
        /// <param name="str">文件路径</param>
        /// <returns></returns>
        public static string success(string url)
        {

            return "{err:'',msg:'" + url + "'}";
        }
        /// <summary>
        /// 上传失败
        /// </summary>
        /// <param name="err">错误信息</param>
        /// <returns></returns>
        public static string error(string err)
        {

            return "{err:'" + err + "',msg:''}";
        }
    }
}
